/**
 * 
 */
package com.dy.dataprocess.general.tools.config.task;

import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.dy.dataprocess.general.tools.config.service.BizConfigService;

/**
 * @author leiruiqi
 *
 */
@Component
public class CommonTask {

	@Resource
	private BizConfigService bizConfigService;
	
	@Scheduled(cron="0 */1 * * * ?")
	public void refreshBizConfigCache(){
		bizConfigService.refresh();
	}
	
	
}
